<h3>Gerenciar Tipos de Projeto Final</h3>

<p class="adicionar"><?php echo $html->link('Adicionar novo tipo de projeto', array('action' => 'add')); ?></p>

<table border="1" cellpadding="0" cellspacing="0">
	<tr>
		<th>Id</th>
		<th>Descrição</th>
		<th class="editar">Editar</th>
		<th class="excluir">Excluir</th>
	</tr>

	<?php foreach ($project_types as $pt): ?>
	<tr>
		<td><?php echo $pt['ProjectType']['id']; ?></td>	
		<td><?php echo $pt['ProjectType']['descricao']; ?></td>
		<td>
			<?php echo $html->link('Editar', '/project_types/edit/'.$pt['ProjectType']['id'] );?>
		</td>
		<td>
			<?php echo $html->link('Excluir',  "/project_types/delete/{$pt['ProjectType']['id']}", null, 'Deseja realmente excluir?' )?>
		</td>
	</tr>
	<?php endforeach; ?> 
</table>
